zz_

index.js

zzmq.dev@gmail.com[maint]/mathkit[write-function-named-iseven-takes] / index.js @ aa3189e7 Download
Ladder Summary

Provides a `sum` function that calculates the sum of an array or multiple numeric arguments passed to it.

+export function sum(...numbers) {
+ return numbers.reduce((total, n) => total + n, 0);
+}